import socket
import time

# 实例套接字
server= socket.socket()
ADDRESS = ('',8000)
# 绑定
server.bind(ADDRESS)
# 监听
server.listen(5)
# accept　会重新返回一个套接字　
content, raddr = server.accept()
print(content.recv(1024))